//
//  CPSpinnerButtonView.h
//  CPSpinnerButtonView
//
//  Created by MorpLCP on 16/5/10.
//  Copyright © 2016年 MorpLCP. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CPSpinnerButtonView;

@protocol  CPSpinnerButtonViewDelegate <NSObject>

- (void)buttonView:(CPSpinnerButtonView *)buttonView didSelectItem:(NSNumber *)index;

@end


@interface CPSpinnerButtonView : UIView

@property (nonatomic, strong) UIColor *tintColor;
@property (nonatomic, strong) UIColor *selectColor;
@property (nonatomic, strong) UIColor *unSelectColor;

@property (nonatomic, assign) id<CPSpinnerButtonViewDelegate> delegate;

@property (nonatomic, assign) CGFloat minGap;
@property (nonatomic, assign) CGFloat lineHeight;
@property (nonatomic, strong) NSMutableArray<UIView *> *items;
@property (nonatomic, strong) UIScrollView *bacScrollView;


- (void)addContentItems:(NSMutableArray<UIView *> *)items Titles:(NSArray<NSString *> *)titles;

@end